package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppRoomJinyanDao;
import com.vf.admin.client.dao.AppRoomLaHeiDao;
import com.vf.admin.client.service.AppRoomJinyanService;
import com.vf.admin.client.service.AppRoomLaHeiService;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppRoomJinyan;
import com.vf.admin.miaodong.entity.AppRoomLaHei;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author anxiang
 * @version 1.0.0
 * @ClassName AppRoomLaHeiServiceImpl.java
 * @Description TODO
 * @createTime 2021年07月28日 19:01:00
 */
@Service
public class AppRoomJinyanServiceImpl implements AppRoomJinyanService {

    @Autowired
    AppRoomJinyanDao appRoomJinyanDao;

    @Override
    public void saveOrUpdate(AppRoomJinyan pojo) {
        appRoomJinyanDao.saveOrUpdate(pojo);
    }

    @Override
    public List<AppRoomJinyan> findList(Map<String, Object> paramap, SplitPageBean splitPageBean) {
        return appRoomJinyanDao.findList(paramap,splitPageBean);
    }

    @Override
    public AppRoomJinyan getByRoomidAndUserid(Integer roomid, Integer userid) {
        return appRoomJinyanDao.getByRoomidAndUserid(roomid, userid);
    }

    @Override
    public void delete(Integer id) {
        appRoomJinyanDao.delete(id);
    }
}